namespace Web.Control.HomePage
{
    using System;
    using System.Data;
    using System.Configuration;
    using System.Web;
    using System.Web.Security;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using System.Web.UI.HtmlControls;
    using Lx.Web.Common.ControlsUI;


    using BLF.WWW_User.Users;
    using Model.WWW_User.User;
    using BLF;
    using System.Collections.Generic;
    using BLF.WWW_WWW.Answer;

    /// <summary>
    /// italki Homepage before login
    /// </summary>
    public class _Default : BaseControl
    {
    
    
        protected Repeater UserBList;
        protected Repeater rptLL;
      

        protected override void OnLoad(EventArgs e)
        {
            Page.Session["ref"] = null;
            if (HttpContext.Current.User.Identity.Name != "")
            {
                Page.Response.Redirect("/my/");
                Page.Response.End();
            }
            if (Page.Request["c"] != null)
            {
               Session["ref"] = this.Page.Request["c"].ToString();
            }
            if (rptLL != null)
            {
                List<LanguageObj> lanObjList = new List<LanguageObj>();
                lanObjList.AddRange(BLF.StaticData.GetPopLanguageList);
                rptLL.DataSource = lanObjList;
                rptLL.DataBind();
            }
            if (UserBList != null)
            {
                UserBList.DataSource = User.SearchUser();
                UserBList.DataBind();
            }
          
           
        }


      

    }
}